# 指定CMake最低版本
cmake_minimum_required(VERSION 3.15)

# 指定项目名称
project(Gomoku)

# 指定头文件位置
include_directories(${PROJECT_SOURCE_DIR}/header)
include_directories(${PROJECT_SOURCE_DIR}/easyx/include)

# 生成可执行文件
file(GLOB SOURCES "src/*.cpp")
add_executable(Gomoku ${SOURCES})

# 启用调试信息
target_compile_options(Gomoku PRIVATE -g)

# 设置动态库搜索路径
# link_directories(${PROJECT_SOURCE_DIR}/easyx/lib64)
link_directories(${PROJECT_SOURCE_DIR}/easyx)

# 设置动态库链接
target_link_libraries(Gomoku PRIVATE ${PROJECT_SOURCE_DIR}/easyx/lib64/libeasyx.a)
target_link_libraries(Gomoku PRIVATE ${PROJECT_SOURCE_DIR}/easyx/lib32/libeasyx.a)

# 指定可执行文件输出目录
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)


